package org.bling.star.common.model;

import java.io.Serializable;

/**
 * @Describe: 用户公共基础数据
 * @Date: 2024/7/11
 * @Author: szz
 */
public class UserInfo implements Serializable {
    private static final long serialVersionUID = -3351671477631665281L;
    private String username;
    private Integer age;

    public UserInfo() {
    }

    public String getUsername() {
        return this.username;
    }

    public Integer getAge() {
        return this.age;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof UserInfo)) return false;
        final UserInfo other = (UserInfo) o;
        if (!other.canEqual(this)) return false;
        final Object this$username = this.getUsername();
        final Object other$username = other.getUsername();
        if (this$username == null ? other$username != null : !this$username.equals(other$username)) return false;
        final Object this$age = this.getAge();
        final Object other$age = other.getAge();
        return this$age == null ? other$age == null : this$age.equals(other$age);
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserInfo;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $username = this.getUsername();
        result = result * PRIME + ($username == null ? 43 : $username.hashCode());
        final Object $age = this.getAge();
        result = result * PRIME + ($age == null ? 43 : $age.hashCode());
        return result;
    }

    public String toString() {
        return "UserInfo(username=" + this.getUsername() + ", age=" + this.getAge() + ")";
    }
}
